package cn.exrick.xboot.modules.gatestation.service;

import cn.exrick.xboot.base.XbootBaseService;
import cn.exrick.xboot.common.vo.SearchVo;
import cn.exrick.xboot.modules.gatestation.entity.NaturalgasEquipment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


/**
 * 天燃气门站设备接口
 * @author yck
 */
public interface NaturalgasEquipmentService extends XbootBaseService<NaturalgasEquipment, String> {

    /**
    * 多条件分页获取
    * @param naturalgasEquipment
    * @param searchVo
    * @param pageable
    * @return
    */
    Page<NaturalgasEquipment> findByCondition(NaturalgasEquipment naturalgasEquipment, SearchVo searchVo, Pageable pageable);

    List<NaturalgasEquipment> findByEquipmentNameAndAndGateStationId(String equipmentName, String gateStationId);

    List<NaturalgasEquipment> findByEquipmentIdAndGateStationId(String equipmentId,String gateStationId);
    List<NaturalgasEquipment> findByContidion(String equipmentId,String gateStationId,String equipmentName,String id);

    List<NaturalgasEquipment> findByGateStationId(String gateStationId);

}